<template>
  <div style="margin: 15px">
   
        <free  v-if="freepatternUpdate"></free>
    
     
  </div>
</template>
<script>
import freepattern from '@/views/customer/level/freeChargePattern';
import payPattern from '@/views/customer/level/payPattern';
export default {
  components: {
    free: freepattern,
    pay: payPattern
  },
  data() {
    return {
      activeName: 'first',
      freepatternUpdate: true,
      payPatternUpdate: false
    };
  },
  methods: {
    handleClick(tab, event) {
      if (tab.name === 'first') {
        this.freepatternUpdate = true
        this.payPatternUpdate = false
      } else if (tab.name === 'second') {
        this.freepatternUpdate = false
        this.payPatternUpdate = true
      }
    },
  }
};
</script>
